gdkgl: Rename function
authorTimm Bäder <mail@baedert.org>
Thu, 1 Oct 2020 04:24:20 +0000 (06:24 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 14 Oct 2020 19:06:12 +0000 (15:06 -0400)
This returns the name of the shader type.

gdk/gdkgl.c

index 7ac9f2b32041b3a01d9b68e0f8ea6026916271a3..7e4817a4dbf04a802c9693ca3dc5920a330b45d4 100644 (file)
@@ -27,7 +27,7 @@
 #include <string.h>
 
 static const char *
-get_vertex_type_name (int type)
+get_shader_type_name (int type)
 {
   switch (type)
     {
@@ -64,7 +64,7 @@ create_shader (int         type,
       buffer = g_malloc (log_len + 1);
       glGetShaderInfoLog (shader, log_len, NULL, buffer);
 
-      g_warning ("Compile failure in %s shader:\n%s", get_vertex_type_name (type), buffer);
+      g_warning ("Compile failure in %s shader:\n%s", get_shader_type_name (type), buffer);
       g_free (buffer);
 
       glDeleteShader (shader);